package com.example.springbootdemo.autowired;

import org.springframework.beans.PropertyValues;
import org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor;
import org.springframework.stereotype.Component;

@Component
public class CustomAutowiredAnnotationBeanPostProcessor extends AutowiredAnnotationBeanPostProcessor {

    public CustomAutowiredAnnotationBeanPostProcessor() {
        super();
        setAutowiredAnnotationType(CustomAutowired.class);
    }

    @Override
    public PropertyValues postProcessProperties(PropertyValues pvs, Object bean, String beanName) {
        return super.postProcessProperties(pvs, bean, beanName);
    }
}
